package com.youkeyi.ddy.cloud.common.api.application.business.storage.in;

import com.youkeyi.ddy.cloud.common.api.application.business.storage.in.dto.BusinessStockInListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.in.param.BusinessStockInCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.in.param.BusinessStockInDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.in.param.BusinessStockInListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.in.param.BusinessStockInUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessStockInCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/stock/in/fallback")
public class BusinessStockInCloudServiceFallback implements BusinessStockInCloudService {

    @Override
    public BusinessStockInListCloudDto list(BusinessStockInListCloudParam param) {
        return new BusinessStockInListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessStockInCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

}
